package com.imoblife.brainwavestus.model;

public class Constant {
	
	public static final String URI_ABOUT_BRAINWAVES_TUS 
				= "http://d7641cmdscmcgy6jwz2nw3uld7.hop.clickbank.net/";
	public static final String URI_ABOUT_IMOBLIFE 
				= "http://mobi.downloadandroid.info/";
	public static final String URI_ABOUT_MORE_APP 
				= "http://mobi.downloadandroid.info/products.php";
	
	public static final String URI_MARKET_WRITTING_COMMENT 
				= "https://market.android.com/details?id=imoblife.brainwavestus&feature=search_result&hl=en";
	
	//测试下载地址
	public static final String TEST_URL =
			"http://qd.baidupcs.com/file/7edbaa3b91e1da6494857ad665cfd0e9?xcode=1ddc4e1381c1a07310f89c51f38034e5d996cdb4dc9d3147&fid=758205429-250528-746864896&time=1373936838&sign=FDTAXER-DCb740ccc5511e5e8fedcff06b081203-gjEr8Tsrvy%2Fgy5N1E%2BDSLvMxE2E%3D&to=qb&fm=Q,Q,U&expires=8h&rt=pr&r=152181318&logid=3590955881&fn=Chakra%20Openingfree.mp3";
			
			
			
	//存放产品信息的xml文件
	public static final String XML_FILE_NAME_OF_PRODUCTS = "products_table_test.xml";
	//存放商店产品分类的json文件
	public static final String JSON_FILE_NAME_OF_STORE_PRODUCT_GROUP = "products.json";
	
	public static final String FREE_WAVE_ID = "calm_down";
	
	public static final String UPDATE_STATEVIEW_SUBSCRIPTION 
				= "update_stateview_subscription";
	
	public static final String UPDATE_STATEVIEW_MYSUBSCRIPTION 
				= "update_stateview_mysubscription";
	
	public static final String PRODUCT_ID = "productId";
	
	public static final String PRODUCTS_XML_PRODUCT_TAG = "Product";	
	
	public static final String PRODUCTS_XML_COLLECTION_TAG = "Collection";
	public static final String GROUP_JSON_PARSER_DISCOUNT = "Specials";
	public static final String GROUP_JSON_PARSER_NEW = "New";
	public static final String GROUP_JSON_PARSER_HOT_SALE = "Featured";
	
	//Json数据文件中，关于打折产品的属性值
	public static final String JSON_ATTR_PARSER_PARENT_ID = "parentId";
	public static final String JSON_ATTR_PARSER_DISCOUNT = "discount";
	public static final String JSON_ATTR_PARSER_OLD_PRICE = "oldPrice";
	public static final String JSON_ATTR_PARSER_NEW_PRICE = "newPrice";
	
	//进入新产品信息列表的Action
	public static final String ACTION_SALE_GROUP_NEW = "com.imoblife.brainwavestus.newgroup";
	
	//进入打折产品列表的Action
	public static final String ACTION_SALE_GROUP_DISCOUNT 
							= "com.imoblife.brainwavestus.discountgroup";
	//进入所有产品信息列表的Action
	public static final String ACTION_SALE_GROUP_ALL 
							= "com.imoblife.brainwavestus.allgroup";
	
	public static final String ACTION_CATEGORY_SHOW 
							= "com.imoblife.brainwavestus.categoryshow";
	
	public static final String CATEGORY_NAME = "categoryName";
	
	public static final String GET_ALL_PRODUCT = "getAllProduct";
	
	//显示脑波种类时，是显示本地脑波还是商店的所有脑波
	public static final String SOURCE = "source";
	
	public static final String SHARED_PREFERENCE = "sharedData";
	
	public static final String DEFAULT_LANGUAGE = "eng";
	
	public static final String LANGUAGE = "language";
	
	public static final int SOURCE_FROM_LOCAL = 11;
	
	public static final int SOURCE_FROM_STORE = 12;
	//对用户收费的产品state
	public static final String PRODUCT_STATE_PAY = "-1";
	//对用户免费的产品state
	public static final String PRODUCT_STATE_FREE = "0";
	
	public static final String UPDATE_PRODUCT_BUY_UI_ACTION 
					= "com.imoblife.brainwaves.refreshview";
	
	public static final String MUSIC_FILE_SUFFIX = ".music";
	//程序启动时，显示公司信息欢迎界面的最小时间
	public static final int LAUNCH_SCREEN_WAITTING_TIME = 3000;
	
	/**
	 * category type,this can also use to identify product
	 * 
	 */
	//discount type
	public static final int GROUP_DISCOUNT = 21;
	//new type
	public static final int GROUP_NEW = 22;
	//hot sale type,use the same string with the json file 
	public static final int GROUP_HOT_SALE = 23;
	
	public static final int LV_BG_COLOR_OF_LAST_PRODUCT = 0x30ffffff;

	public static final String DOWNLOAD_STATE_START = "-2";// 开始下载
	public static final String DOWNLOAD_STATE_NOT_ENBLE = "-1";// 不可用
	public static final String DOWNLOAD_STATE_UPGRADE = "0";// 升级
	public static final String DOWNLOAD_STATE_END = "2";// 结束
	public static final String DOWNLOAD_STATE_CANCEL = "3";// 取消状态
	public static final String DOWNLOAD_STATE_FAILE = "4";// 下载失败状态
	
	public static final int INT_DOWN_STATE_START = -2;// 开始下载
	public static final int INT_DOWN_STATE_NOT_ENBLE = -1;// 不可用
	public static final int INT_DOWM_STATE_UPGRADE = 0;// 升级
	public static final int INT_DOWN_STATE_END = 2;// 结束
	public static final int INT_DOWN_STATE_CANCEL = 3;// 取消状态
	public static final int INT_DOWN_STATE_FAILE = 4;// 下载失败状态
	
	public static final  int EXTR_FAILE_NET = -1;// 网络错误字段

	public static final  int EXTR_FAILE_SDCARDE = -2;// 写入sdcard错误

	public static final  int EXTR_SUCC = 0;// 附加成功

	public static final  int EXTR_EMPTY = -3;// 数据

	public static final int EXTR_INTERRUPT = -4;//

}
